package com.cskaoyan.day7._01_example;

import java.util.List;

class Grade {
    Teacher teacher;
    List<Student> students;

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public List<Student> getStudents() {
        return students;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    @Override
    public String toString() {
        return "Grade{" + "teacher=" + teacher + ", students=" + students + '}';
    }
}
